﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CreacionUsuarios.ascx.cs" Inherits="WebArchivosTelefonica.CreacionUsuarios" %>
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#E3EAEB" 
    BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" 
    Font-Names="Verdana" Font-Size="0.8em" LoginCreatedUser="False">
    <SideBarStyle BackColor="#1C5E55" Font-Size="0.9em" VerticalAlign="Top" />
    <SideBarButtonStyle ForeColor="White" />
    <FinishNavigationTemplate>
        <asp:Button ID="FinishPreviousButton" runat="server" BackColor="White" 
            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
            CausesValidation="False" CommandName="MovePrevious" Font-Names="Verdana" 
            ForeColor="#1C5E55" Text="Previous" />
        <asp:Button ID="FinishButton" runat="server" BackColor="White" 
            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
            CommandName="MoveComplete" Font-Names="Verdana" ForeColor="#1C5E55" 
            Text="Finish" />
    </FinishNavigationTemplate>
    <ContinueButtonStyle BackColor="White" BorderColor="#C5BBAF" 
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
        ForeColor="#1C5E55" />
    <NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" 
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
        ForeColor="#1C5E55" />
    <HeaderStyle BackColor="#666666" BorderColor="#E6E2D8" BorderStyle="Solid" 
        BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White" 
        HorizontalAlign="Center" />
    <CreateUserButtonStyle BackColor="White" BorderColor="#C5BBAF" 
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
        ForeColor="#1C5E55" />
    <StepNavigationTemplate>
        <asp:Button ID="StepPreviousButton" runat="server" BackColor="White" 
            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
            CausesValidation="False" CommandName="MovePrevious" Font-Names="Verdana" 
            ForeColor="#1C5E55" Text="Previous" />
        <asp:Button ID="StepNextButton" runat="server" BackColor="White" 
            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
            CommandName="MoveNext" Font-Names="Verdana" ForeColor="#1C5E55" Text="Next" />
    </StepNavigationTemplate>
    <TitleTextStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
    <StepStyle BorderWidth="0px" />
    <StartNavigationTemplate>
        <asp:Button ID="StartNextButton" runat="server" BackColor="White" 
            BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
            CommandName="MoveNext" Font-Names="Verdana" ForeColor="#1C5E55" Text="Next" />
    </StartNavigationTemplate>
    <WizardSteps>
        <asp:CreateUserWizardStep runat="server" Title="Crear nuevo usuario">
            <ContentTemplate>
                <table border="0" style="font-family:Verdana;font-size:100%;">
                    <tr>
                        <td align="center" colspan="2" 
                            style="color:White;background-color:#6699ff;font-weight:bold;">
                            <asp:Label ID="LabelTitulo" runat="server" Text="Crear nuevo usuario" 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                                Text="Usuario: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="UserName" runat="server" Font-Names="Verdana" 
                                Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                ControlToValidate="UserName" ErrorMessage="Nombre de usuario requerido." 
                                ToolTip="Nombre de usuario requerido." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" 
                                Text="Contraseña: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Password" runat="server" TextMode="Password" 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                ControlToValidate="Password" ErrorMessage="Contraseña requerida." 
                                ToolTip="Contraseña requerida." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                AssociatedControlID="ConfirmPassword" Text="Confirmar contraseña: " 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                ControlToValidate="ConfirmPassword" 
                                ErrorMessage="Es necesario confirmar la contraseña" 
                                ToolTip="Es necesario confirmar la contraseña" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" 
                                Text="E-mail: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Email" runat="server" Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                ControlToValidate="Email" ErrorMessage="E-mail requerido." 
                                ToolTip="E-mail requerido." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" 
                                Text="Pregunta secreta: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Question" runat="server" Font-Names="Verdana" 
                                Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                ControlToValidate="Question" ErrorMessage="Pregunta secreta requerida." 
                                ToolTip="Pregunta secreta requerida." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" 
                                Text="Respuesta: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Answer" runat="server" Font-Names="Verdana" 
                                Font-Size="X-Small"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                ControlToValidate="Answer" ErrorMessage="Respuesta requerida." 
                                ToolTip="Respuesta requerida." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                Display="Dynamic" 
                                ErrorMessage="Las contraseñas deben ser identicas." 
                                ValidationGroup="CreateUserWizard1" Font-Names="Verdana" 
                                Font-Size="X-Small"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2" style="color:Red;">
                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <CustomNavigationTemplate>
                <table border="0" cellspacing="5" style="width:100%;height:100%;">
                    <tr align="right">
                        <td align="right" colspan="0">
                            <asp:Button ID="StepNextButton" runat="server" BackColor="White" 
                                BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                CommandName="MoveNext" Font-Names="Verdana" ForeColor="#1C5E55" 
                                Text="Crear Usuario" ValidationGroup="CreateUserWizard1" 
                                Font-Size="X-Small" />
                        </td>
                    </tr>
                </table>
            </CustomNavigationTemplate>
        </asp:CreateUserWizardStep>
        <asp:CompleteWizardStep runat="server" >
            <ContentTemplate>
                <table border="0" style="font-family:Verdana;font-size:100%;">
                    <tr>
                        <td align="center" colspan="2" 
                            style="color:White;background-color:#6699ff;font-weight:bold;">
                            <asp:Label ID="LabelTituloCompleto" runat="server" Text="Completado" 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="La cuenta se ha creado con exito." 
                                Font-Names="Verdana" Font-Size="X-Small"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="ContinueButton" runat="server" BackColor="White" 
                                BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                CausesValidation="False" CommandName="Continue" Font-Names="Verdana" 
                                ForeColor="#1C5E55" Text="Aceptar" ValidationGroup="CreateUserWizard1" 
                                PostBackUrl="~/ListadoUsuarios.aspx" Font-Size="X-Small" />
                            <asp:Button ID="BotonEditar" runat="server" BackColor="White" 
                                BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                CausesValidation="False" CommandName="Continue" Font-Names="Verdana" 
                                Font-Size="X-Small" ForeColor="#1C5E55" onclick="BotonEditar_Click" 
                                Text="Editar Roles" ValidationGroup="CreateUserWizard1" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:CompleteWizardStep>
    </WizardSteps>
</asp:CreateUserWizard>
